lidas.listview = {
    JSON : function(data){
        var render = new Array();
        var labels = data.request.attrs;
        var n = labels.length;
        render.push('<div data-id="header">');
        for(var i =0; i < n; i++){
            render.push('<span class="sortable_click" data-attr="'+labels[i]+'">'+
                labels[i]+'</span>');
        }
        render.push('</div>');
        $.map(data.response, function(r){
            render.push('<div data-id="'+r.id+'">');
            for(var i =0; i < n; i++){
                render.push('<span data-type="edit" contenteditable="true" data-attr="'+labels[i]+'">'+
                    (r[labels[i]]?r[labels[i]].join('<hr/>'):'')+'</span>');
            }
            render.push('</div>');
        });
        this.html(render.join(''));
    }
};
